package cn.stylefeng.guns.modular.app.dto.e;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("挖矿请求对象")
public class ApiMiningDto
{

    /**
     * "配置等级
     */
    @NotNull(message = "配置等级不能为空")
    @ApiModelProperty(value = "配置等级",required = true)
    private Long staticId;


    /**
     * 挖矿周期
     */
    @NotNull(message = "挖矿周期不能为空")
    @Pattern(regexp = "^(1|7|30)$",message = "挖矿周期只能为1/7/30")
    @ApiModelProperty(value = "挖矿周期",required = true)
    private String day;

}
